/**
 * 
 */
package wong.board.client.widgets;

/**
 * @author wong
 * 
 */
public class ContentContainer extends Container {
	private Label label;
	private ContentPanel content;

	public ContentContainer() {
		super();
		addStyleName(widgetsCss.titledContainer());

		label = new Label();
		label.addStyleName(widgetsCss.titledContainerLabel());

		content = new ContentPanel();
		content.addStyleName(widgetsCss.titledContainerContent());

		getContainer().add(label);
		getContainer().add(content);
	}

	public ContentContainer(String text) {
		this();
		setLabelText(text);
	}

	@Override
	public Content getContainer() {
		return super.getContainer();
	}

	public void addLabelStyleName(String style) {
		label.addStyleName(style);
	}

	public void setLabelText(String text) {
		label.setText(text);
	}

	public Content getContent() {
		return content;
	}

}
